package com.ciaojian.client.util;

import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.temporal.ChronoUnit;
import java.util.Date;

/**
 * @author:wangzhongx
 * @date:2020/7/9
 * @description:
 **/
public class RedisKey {

    /**
     * 返回登录的key
     *
     * @param userId
     * @return
     */
    public static String getTokenExpireKey(String userId) {
        return String.format("userId:token:expire:%s", userId);
    }

    /**
     * key
     * @param serviceId
     * @param jtrKey
     * @return
     */
    public static String getJtrVerificationKey(String serviceId,String jtrKey) {
        return String.format("serviceId:token:jtrKey:%s:%s",serviceId,jtrKey );
    }




}
